<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML>
<html lang="cn">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>我的私信</title>
<%@ include file="../include/include.jsp"%>
<script type="text/javascript">
	
	var priNum = 0;
	
	var loadPrivateLetters = function() {
		$("#content").html("正在载入数据....");
		$.ajax({
			   type: "POST",
			   dataType:'html',
			   cache:false,
			   url: "letter_letter_loadLetters.htm",
			   success:function(data){
			   		$("#content").html(data);
			   		$.post('letter_letter_getPriNum.htm',function(data) {
			   			priNum = data;
			   			$('#pri_num').html('私信(' + data + ')');
			   		});
			   }
			});
	};
	// 显示详细信息
	var showDetails = function(friendUserId) {
		location.href="./letter_letter_detail.htm?friendUserId=" + friendUserId; 
	};
	
	// 删除私信
	var deletePrivetters = function(liId,friendUserId) {
		$('#' + liId).slideUp();
		$.post('./letter_letter_deleteFriendLetters.htm',{friendUserId:friendUserId},function(data) {
			priNum = priNum - 1;
			$('#pri_num').html('私信(' + priNum + ')');
		});
		
	};
	
	$(function(){
		loadPrivateLetters();
	});
</script>

</head>

<body style="overflow: inherit;" class="wider no-subnav catalog-lists">
<c:import url="/jsp/fg/include/default_head.jsp">
	<c:param name="menu" value="8" />
</c:import>
<!-- / header -->

<div class="container ">
	<div class="wrapper-content left-sidebar">
			<div id="content">
	
			</div>
			<!-- / content -->
			<div id="sidebar">
				<ul class="vtab">
					<li class="vtab-selected" id='pri_num' onclick="./letter_letter_view.htm" >私信
					</li>
				</ul>
			</div>
		<!-- / sidebar --> 
		
	</div>
	<!-- / wrapper-content -->
	
	<c:import url="/jsp/fg/include/default_foot.jsp"></c:import>
	<!-- / footer --> 
	
</div>
<!-- / container --> 

<div id="fb-root"> </div>
</body>
</html>